<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智慧配镜 - 用户编辑</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        .glass-effect {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .mockup {
            border: 2px solid #e5e7eb;
            border-radius: 1rem;
            overflow: hidden;
        }
        .upload-area {
            border: 2px dashed #d1d5db;
            border-radius: 0.5rem;
            transition: all 0.3s;
        }
        .upload-area:hover {
            border-color: #3b82f6;
            background-color: #f0f9ff;
        }
    </style>
</head>
<body class="bg-gradient-to-br from-blue-50 to-blue-100 min-h-screen p-8">
    <div class="mockup w-[400px] h-[600px]">
        <div class="h-full flex flex-col glass-effect">
            <!-- 顶部导航 -->
            <div class="p-4 border-b border-gray-200">
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <button class="mr-4 p-2 rounded-full hover:bg-gray-100">
                            <img src="https://unpkg.com/lucide-static@latest/icons/arrow-left.svg" class="w-6 h-6">
                        </button>
                        <h1 class="text-xl font-bold text-blue-800">编辑用户</h1>
                    </div>
                    <button class="p-2 rounded-full hover:bg-gray-100">
                        <img src="https://unpkg.com/lucide-static@latest/icons/check.svg" class="w-6 h-6">
                    </button>
                </div>
            </div>

            <!-- 表单内容 -->
            <div class="flex-1 overflow-y-auto p-4">
                <div class="space-y-4">
                    <!-- 用户头像上传 -->
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">用户头像</label>
                        <div class="upload-area p-4 text-center cursor-pointer">
                            <div class="flex flex-col items-center">
                                <div class="w-20 h-20 bg-gray-100 rounded-full overflow-hidden mx-auto mb-2">
                                    <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e" class="w-full h-full object-cover">
                                </div>
                                <p class="text-sm text-gray-500">点击更换头像</p>
                                <p class="text-xs text-gray-400 mt-1">支持 JPG、PNG 格式，大小不超过 2MB</p>
                            </div>
                        </div>
                    </div>

                    <!-- 基本信息 -->
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">基本信息</label>
                        <div class="space-y-3">
                            <div>
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="姓名" value="张三">
                            </div>
                            <div>
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="手机号" value="138****8888">
                            </div>
                            <div>
                                <input type="email" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="邮箱" value="zhangsan@example.com">
                            </div>
                        </div>
                    </div>

                    <!-- 用户状态 -->
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">用户状态</label>
                        <div class="grid grid-cols-2 gap-2">
                            <button class="px-3 py-2 text-sm border border-blue-500 bg-blue-50 text-blue-600 rounded-lg">活跃</button>
                            <button class="px-3 py-2 text-sm border border-gray-300 rounded-lg hover:bg-gray-50">未激活</button>
                        </div>
                    </div>

                    <!-- 其他信息 -->
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">其他信息</label>
                        <div class="space-y-3">
                            <div>
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="身份证号" value="110101199001011234">
                            </div>
                            <div>
                                <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="地址" value="北京市朝阳区xxx街道xxx号">
                            </div>
                            <div>
                                <textarea class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" rows="2" placeholder="备注">VIP客户，享受9折优惠</textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 底部操作按钮 -->
            <div class="p-4 border-t border-gray-200">
                <div class="flex space-x-3">
                    <button class="flex-1 px-4 py-2 text-sm text-white bg-blue-600 rounded-lg hover:bg-blue-700">
                        保存
                    </button>
                    <button class="flex-1 px-4 py-2 text-sm text-gray-700 border border-gray-300 rounded-lg hover:bg-gray-50">
                        取消
                    </button>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 